﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="routesmanage_compList.ascx.cs" Inherits="uswinweb.datacontrol.routesmanage_compList" %>
<table border="0" cellpadding="0" cellspacing="0" class="edtb">
				<thead>
					<tr>
                    <td width="5%">&nbsp;</td>
						<td onclick="minoSort(' order by id desc ')">公司代码</td>
						<td onclick="minoSort(' order by cname asc ')">公司名称</td>
						<td>操  作</td>
					</tr>
				</thead>
				<tbody>
                <%foreach (System.Data.DataRow dr in compTab.Rows)
                  { %>
                  <tr>
                  <td><input type="checkbox" name="ids" value="<%=dr["id"].ToString()%>"  id="ids"/></td>
						<td><%=dr["id"] %></td>
						<td><%=dr["cname"] %></td>
						<td>
							<a href="../admin/routesList_index.aspx?cid=<%=dr["id"] %>" rel="iframe" title=" :: :: width:700,height:700" class="l_blue lightview">授权航线</a>
						</td>
					</tr>
                <%} %>
				</tbody>
			<tfoot>
				<tr>
					<td colspan="15">
						<%=pageList %>
					</td>
				</tr>
			</tfoot>
			</table>
            <script>
                function del(val) {
                    loading();
                    if (val == 'all') {
                        val = checkedlist('ids');
                    }
                    if (val != "") {
                        AjaxHelper.Updater('routesmanage_compList.ascx', 'showdata', 'action=del&parms=' + val + '');
                        parent.reclcik();
                    }
                }
                function minoSort(val) {
                    loading();
                    AjaxHelper.Updater('routesmanage_compList.ascx', 'showdata', 'action=sort&parms=' + val + '');
                }

            </script>